#ifndef UTILS_H_
#define UTILS_H_

#include <vector>
#include <string>
#include <type_traits>
#include <sstream>

using std::string;
using std::vector;

namespace utils {

static const string testing_account = "hUYs-d9flegd's:g89ee8h43KDHSH*78ewskjD";

vector<string> split_string(const string& str, const string& ch);

template <typename T>
string format_string(const string& str, T ch) {
  string result;
  std::stringstream buff;
  buff << ch;

  string::size_type target = str.find("{}");
  result.append(str.substr(0, target));
  result.append(buff.str());
  result.append(str.substr(target + 2, str.length() - target - 2));

  return result;
}

}  // namespace utils

#endif  // UTILS_H_
